
/*
 * I main class tou programatos.
 * To programa xekina se console mode, rotondas an o hristis theli na sinehisi stin "console mode".
 * An ohi tote kalite o constactoras tis class messageBox tou package: GUI.
 * Alios to programa sinehizi se console mode.
 */

package gameStructure;

import GUI.messageBox;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class gameStarter{
    public static void main(String args[]) throws IOException{
        System.out.println("To programa tha sinehisi se console mode (y/n):");
        InputStreamReader reader = new InputStreamReader(System.in);
        BufferedReader in = new BufferedReader(reader);

        boolean til=true;
        do{
            String ch = in.readLine();
            if ( ch.charAt(0)=='y') {
                til=false;
                //kalite i class pou ine ipeuthini gia tis litourgies tis console!
                System.out.println("Console mode.\n");
            }
            else if ( ch.charAt(0)=='n') {
                til=false;
                messageBox sk = new messageBox();
            }
        }while( til );
    }
}